﻿using Animoso.Domain;
using Animoso.Domain.Data;
using StructureMap;

namespace Animoso.Web
{
    public class TestData
    {
        private IRepository<User> _userRepository;
        public TestData()
        {
            _userRepository = ObjectFactory.GetInstance<IRepository<User>>();
            AddUsers();
        }

        private void AddUsers()
        {
            User user = new User
                            {
                                Name = "admin",
                                Password = "admin"
                            };
            _userRepository.Add(user);
        }
    }
}